Skip to content

feat(recovery): add abandoned session reaper#1022

Merged
wbugitlab1 merged 3 commits into
mainfrom
issue/298-abandoned-session-recovery
Jun 19, 2026
Merged

feat(recovery): add abandoned session reaper#1022
wbugitlab1 merged 3 commits into
mainfrom
issue/298-abandoned-session-recovery

Conversation

@wbugitlab1

Copy link
Copy Markdown
Owner

Summary

  • Add mem::session-reap to detect and recover abandoned active sessions after abrupt exits.
  • Expose recovery through POST /agentmemory/sessions/reap, agentmemory reap, startup reconciliation, optional interval reconciliation, diagnostics, and heal.
  • Update endpoint-count docs, env docs, generated plugin references, and task-state records.

Closes #298.

Verification

  • corepack pnpm exec vitest run test/api-boundary-coverage.test.ts test/cli-http-auth.test.ts
  • corepack pnpm exec vitest run test/session-reaper.test.ts test/session-reaper-scheduler.test.ts test/api-boundary-coverage.test.ts test/cli-http-auth.test.ts test/session-end-triggers-graph.test.ts test/diagnostics.test.ts
  • corepack pnpm run lint
  • corepack pnpm run build
  • corepack pnpm test
  • corepack pnpm run skills:check
  • git diff --cached --check
  • semgrep scan --config p/default --error --metrics=off .
  • semgrep scan --config p/default --error --metrics=off src/functions/session-reaper.ts src/functions/session-reaper-scheduler.ts test/session-reaper.test.ts test/session-reaper-scheduler.test.ts
  • gitleaks protect --staged --redact

@wbugitlab1 wbugitlab1 merged commit 7474963 into main Jun 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(recovery): abandoned session detection and backfill for abruptly terminated sessions

1 participant